package com.cysion.otbox.hook

import androidx.fragment.app.FragmentActivity

/*
* 第三方库与业务层的通信
*
* */
object Hookers {

    lateinit var atyHooker: Hooker
    private set

    fun setHooker(hook: Hooker) {
        if (!this::atyHooker.isInitialized) {
            atyHooker = hook
        }
    }
}

interface Hooker {
    fun handle(context: FragmentActivity, param: Map<String, Any>)
}